﻿@using AbpCompanyName.AbpProjectName.WebMpa.Models.Common.Modals
@model AbpCompanyName.AbpProjectName.MultiTenancy.Dto.TenantDto
@{
    Layout = null;
}
@Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditTenant")))

<div class="modal-body">
    <form name="TenantEditForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.Id" />
        <div class="form-group form-float">
            <div class="form-line">
                <input class="form-control" type="text" name="TenancyName" value="@Model.TenancyName" required maxlength="64" minlength="2">
                <label class="form-label">@L("TenancyName")</label>
            </div>
        </div>
        <div class="form-group form-float">
            <div class="form-line">
                <input type="text" name="Name" class="form-control" value="@Model.Name" required maxlength="128">
                <label class="form-label">@L("Name")</label>
            </div>
        </div>
        <div class="form-group form-float">
            <div class="">
                <input id="isactive" type="checkbox" name="IsActive" value="true" @(Model.IsActive ? "checked" : "") class="form-control" />
                <label for="isactive" class="form-label">@L("IsActive")</label>
            </div>
        </div>
    </form>
</div>

@Html.Partial("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")

<script src="~/Views/Tenants/_EditTenantModal.js" asp-append-version="true"></script>